CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

set(projectName codekata)
PROJECT(${projectName})


FILE(GLOB_RECURSE all_files 
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/test/*.cpp"
)

include_DIRECTORIES( 
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}include/gtest"
"${CMAKE_CURRENT_SOURCE_DIR}/test"
)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wall")

link_directories("${CMAKE_CURRENT_SOURCE_DIR}/lib")

add_executable(${projectName} ${all_files})
message (STATUS "CMAKE_C_COMPILER is ${CMAKE_C_COMPILER}, CMAKE_CXX_COMPILER is ${CMAKE_CXX_COMPILER}")
message (STATUS "CMAKE_COMPILER_IS_GNUCC is ${CMAKE_COMPILER_IS_GNUCC}")

target_link_libraries(${projectName} libgtest.a)


